package com.example.dataextraction.service;

import com.example.dataextraction.model.BaseBean;

import java.util.Date;
import java.util.UUID;

/**
 * @author Zenan Chen
 * @date 2023/3/31 9:48
 */
public class BaseServiceImpl {

    public void fillBean(BaseBean baseBean) {
        baseBean.setUuid((UUID.randomUUID().toString().replaceAll("-", "")));
        baseBean.setDelFlag("0");
        baseBean.setCreateDate(new Date());
        baseBean.setUpdateDate(new Date());
        // 暂时写死admin
        baseBean.setCreateBy("admin");
        baseBean.setUpdateBy("admin");
    }
}
